from typing import AnyStr
from requests import Session
from utils.common_sydr import reqMethod

# /courseapi/studyCalenderUserConfig/front/setMotto
def setMotto(uri:AnyStr,data,session:Session):
    argsPosition = {"body": "str"}
    return reqMethod(uri, data, session, "post", argsPosition)


# /courseapi/userStudyDateStatistics/front/mainPageInfo
def mainPageInfo(uri:AnyStr,data,userId,session:Session):
    argsPosition = {"body": "str"}
    L=[]
    L.append(userId)
    return reqMethod(uri, data, session, "post", argsPosition,L)

# /courseapi/userStudyDateStatistics/front/latestStatisticsData
def latestStatisticsData(uri:AnyStr,data,userId,session:Session):
    argsPosition = {"body": "str"}
    L=[]
    L.append(userId)
    return reqMethod(uri, data, session, "post", argsPosition,L)

# /courseapi/userStudyDateStatistics/front/newBdpanLatestStatisticsData
def newBdpanLatestStatisticsData(uri:AnyStr,data,userId,session:Session):
    argsPosition = {"body": "str"}
    L=[]
    L.append(userId)
    return reqMethod(uri, data, session, "post", argsPosition,L)


#/courseapi/userStudyDateStatistics/front/latestSubjectStatistics
def latestSubjectStatistics(uri:AnyStr,data,userId,session:Session):
    argsPosition = {"body": "str"}
    L=[]
    L.append(userId)
    return reqMethod(uri, data, session, "post", argsPosition,L)

#/courseapi/studyCalenderLike/front/like
def like(uri:AnyStr,data,userId,session:Session):
    argsPosition = {"body": "str"}
    L=[]
    L.append(userId)
    return reqMethod(uri, data, session, "post", argsPosition,L)

#/courseapi/studyCalenderLike/front/unlike
def unlike(uri:AnyStr,data,userId,session:Session):
    argsPosition = {"body": "str"}
    L=[]
    L.append(userId)
    return reqMethod(uri, data, session, "post", argsPosition,L)

#/courseapi/studyCalenderLike/front/likeInfo
def likeInfo(uri:AnyStr,data,userId,session:Session):
    argsPosition = {"body": "str"}
    L=[]
    L.append(userId)
    return reqMethod(uri, data, session, "post", argsPosition,L)


#/courseapi/userStudyDateStatistics/front/detailByDate
def detailByDate(uri:AnyStr,data,userId,date,session:Session):
    argsPosition = {"body": "str"}
    L=[]
    L.append(userId)
    L.append(date)
    return reqMethod(uri, data, session, "post", argsPosition,L)


#/courseapi/userStudyDateStatistics/front/studyCalender
def studyCalender(uri:AnyStr,data,userId,beginDate,endDate,session:Session):
    argsPosition = {"body": "str"}
    L=[]
    L.append(userId)
    L.append(beginDate)
    L.append(endDate)
    return reqMethod(uri, data, session, "post", argsPosition,L)


#/courseapi/badgeUser/front/searchBestBadgeOwn
def searchBestBadgeOwn(uri:AnyStr,data,userId,session:Session):
    argsPosition ={"uri":"dict"}
    L=[]
    L.append(userId)
    return reqMethod(uri, data, session, "get", argsPosition,L)

